/*
 * Created on May 25, 2004
 * by Mihai Postelnicu
 * email mihai@code.ro
 *
 *
 */
package ro.gateway.aida.search;

import ro.gateway.aida.obj.LangString;


/**
 * @author Mihai Postelnicu
 * email mihai@code.ro
 */
public class LangStringCell extends ResultCell {

    public LangString item;
    
    public LangStringCell(String type) {
    	super(type);
    	item=new LangString();
    }
    
    public String toString() {
    	if(item.toString()==null || item.toString().equals("")) return super.toString();
        return item.toString();
    }
    
    public int compareTo(Object o) {
    	LangStringCell c=(LangStringCell)o;
        return toString().compareTo(o.toString());
    }

    /**
     * @return Returns the item.
     */
    public LangString getItem() {
        return item;
    }
    /**
     * @param item The item to set.
     */
    public void setItem(LangString item) {
        this.item = item;
    }
}
